﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="IBindService.cs" company="">
//   
// </copyright>
// <summary>
//   The BindService interface.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Libium.Bindings
{
    using Libium.Adapters;

    /// <summary>
    ///   The BindService interface.
    /// </summary>
    public interface IBindService
    {
        #region Public Properties

        /// <summary>
        ///   Gets or sets the adapt service.
        /// </summary>
        IAdaptService AdaptService { get; set; }

        #endregion

        #region Public Methods and Operators

        /// <summary>
        /// The try bind.
        /// </summary>
        /// <param name="obj1">
        /// The obj 1. 
        /// </param>
        /// <param name="obj2">
        /// The obj 2. 
        /// </param>
        /// <param name="binding">
        /// The binding. 
        /// </param>
        /// <returns>
        /// The <see cref="bool"/> . 
        /// </returns>
        bool TryBind(object obj1, object obj2, out IBinding binding);

        /// <summary>
        /// The try unbind.
        /// </summary>
        /// <param name="obj1">
        /// The obj 1. 
        /// </param>
        /// <param name="obj2">
        /// The obj 2. 
        /// </param>
        /// <returns>
        /// The <see cref="bool"/> . 
        /// </returns>
        bool TryUnbind(object obj1, object obj2);

        /// <summary>
        /// The try unbind.
        /// </summary>
        /// <param name="obj">
        /// The obj. 
        /// </param>
        /// <returns>
        /// The <see cref="bool"/> . 
        /// </returns>
        bool TryUnbind(object obj);

        #endregion
    }
}